#pragma once 

#include "resource_handle.hpp"

namespace winboost {
   namespace resources {

struct deleter_icon
{
   void operator()(HICON h)  { ::DestroyIcon(h); }
};

class icon : public resource_handle<HICON__>
{
   virtual void set_id_impl(LPCTSTR ids, HINSTANCE hinst)
   {
      m_handle = handle_type(::LoadIcon(hinst, ids), deleter_icon());
   }
};

   }
}
